std::forward_list::resize

From Cppreference

Jump to: navigation, search
void resize( size_type count, T value = T() );
(C++0x feature)

Resizes the container to contain count elements.

If the current size is less than count, additional elements are appended and initialized with value.

If the current size is greater than count, the container is reduced to its first count elements.

Contents

Parameters

count - new size of the container
value - the value to initialize the new elements with

Return value

(none)

Complexity

linear in the size of the container

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages